#include "Protocol_SSL.h"

CProtocol_SSL::CProtocol_SSL(void)
{
	name = "SSL";
}

CProtocol_SSL::~CProtocol_SSL(void)
{
}

StackUtils::e_Status CProtocol_SSL::Decode( CPacket& packet )
{
	packet.removeElements(0, name.size() + 2);
	packet.removeElements(packet.getBufferContent().size() - (name.size() + 2), name.size() + 2);
	return StackUtils::E_SUCCESS;
}

StackUtils::e_Status CProtocol_SSL::Encode( CPacket& packet )
{
	packet.addFront("[SSL]");
	packet.addBack("[SSL]");
	return StackUtils::E_SUCCESS;
}
